export const styleKeyToChinese = (str: string | number): string => {
  // 字典
  const o = {
    width: '宽度',
    height: '高度',
    top: '上边距',
    left: '左边距',
    lineHeight: '行高',
    textAlign: '水平布局',
    fontSize: '字体大小',
    border: '边框',
    color: '字体颜色',
    backgroundColor: '背景颜色',
    borderColor: '边框颜色',
    fontFamily: '字体'
  }

  if (o[str]) return o[str] + ':'
  return str.toString()
}

export const styleKeyToType = (str: string | number): string => {
  if (str.toString().toLocaleLowerCase().includes('color')) return 'color'
  return 'text'
}
